const fs = lx =require('fs');
const path = require('path');



let code = fs.readFileSync(path.join(__dirname, 'demo.jsx'), 'utf8');


try
{
    let result = require('@babel/core').transform(code, {
        plugins: [
            require('../../babel/plugin-jsx.js')
        ]
    });

    fs.writeFileSync(path.join(__dirname, 'demo.js'), result.code, 'utf8');
}
catch (err)
{
    console.log(err.stack);
    debugger
}

